package com.ruoyi.electronicFence.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.electronicFence.mapper.TEfHistoryEquipmentStatusMapper;
import com.ruoyi.electronicFence.domain.TEfHistoryEquipmentStatus;
import com.ruoyi.electronicFence.service.ITEfHistoryEquipmentStatusService;

/**
 * 场所（监测点）状态历史Service业务层处理
 *
 * @author sxygsj
 * @date 2024-08-13
 */
@Service
public class TEfHistoryEquipmentStatusServiceImpl implements ITEfHistoryEquipmentStatusService
{
    @Autowired
    private TEfHistoryEquipmentStatusMapper tEfHistoryEquipmentStatusMapper;

    /**
     * 查询场所（监测点）状态历史
     *
     * @param id 场所（监测点）状态历史主键
     * @return 场所（监测点）状态历史
     */
    @Override
    public TEfHistoryEquipmentStatus selectTEfHistoryEquipmentStatusById(Long id)
    {
        return tEfHistoryEquipmentStatusMapper.selectTEfHistoryEquipmentStatusById(id);
    }

    @Override

    public TEfHistoryEquipmentStatus selectTEfHistoryEquipmentStatusLast(TEfHistoryEquipmentStatus tEfHistoryEquipmentStatus) {
        return tEfHistoryEquipmentStatusMapper.selectTEfHistoryEquipmentStatusLast(tEfHistoryEquipmentStatus);
    }

    /**
     * 查询场所（监测点）状态历史列表
     *
     * @param tEfHistoryEquipmentStatus 场所（监测点）状态历史
     * @return 场所（监测点）状态历史
     */
    @Override
    public List<TEfHistoryEquipmentStatus> selectTEfHistoryEquipmentStatusList(TEfHistoryEquipmentStatus tEfHistoryEquipmentStatus)
    {
        return tEfHistoryEquipmentStatusMapper.selectTEfHistoryEquipmentStatusList(tEfHistoryEquipmentStatus);
    }

    /**
     * 新增场所（监测点）状态历史
     *
     * @param tEfHistoryEquipmentStatus 场所（监测点）状态历史
     * @return 结果
     */
    @Override
    public int insertTEfHistoryEquipmentStatus(TEfHistoryEquipmentStatus tEfHistoryEquipmentStatus)
    {
        return tEfHistoryEquipmentStatusMapper.insertTEfHistoryEquipmentStatus(tEfHistoryEquipmentStatus);
    }

    /**
     * 修改场所（监测点）状态历史
     *
     * @param tEfHistoryEquipmentStatus 场所（监测点）状态历史
     * @return 结果
     */
    @Override
    public int updateTEfHistoryEquipmentStatus(TEfHistoryEquipmentStatus tEfHistoryEquipmentStatus)
    {
        return tEfHistoryEquipmentStatusMapper.updateTEfHistoryEquipmentStatus(tEfHistoryEquipmentStatus);
    }

    /**
     * 批量删除场所（监测点）状态历史
     *
     * @param ids 需要删除的场所（监测点）状态历史主键
     * @return 结果
     */
    @Override
    public int deleteTEfHistoryEquipmentStatusByIds(Long[] ids)
    {
        return tEfHistoryEquipmentStatusMapper.deleteTEfHistoryEquipmentStatusByIds(ids);
    }

    /**
     * 删除场所（监测点）状态历史信息
     *
     * @param id 场所（监测点）状态历史主键
     * @return 结果
     */
    @Override
    public int deleteTEfHistoryEquipmentStatusById(Long id)
    {
        return tEfHistoryEquipmentStatusMapper.deleteTEfHistoryEquipmentStatusById(id);
    }
}
